package com.qijian.common.core.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.ALWAYS)
public class SinoResponse<T> {

    @JsonProperty(value = "RESULT")
    private String RESULT;

    @JsonProperty(value = "MESSAGE")
    private String MESSAGE;

    @JsonProperty(value = "DATA")
    private T DATA;


    public SinoResponse(String RESULT, String MESSAGE){
        this.RESULT = RESULT;
        this.MESSAGE = MESSAGE;
    }

}
